package com.lxw.manager.cms.config;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    public static final String EXCHANGE_ROUTING = "exchange_cmspage_post";


    @Bean(EXCHANGE_ROUTING)
    public Exchange getExchange(){
        return ExchangeBuilder.directExchange(EXCHANGE_ROUTING).durable(true).build();
    }


}
